<?php if (!defined('THINK_PATH')) exit();?><html>
<head>
    <link href="/origin/Public/style/basic.css" rel="stylesheet" type="text/css" />
    <link href="/origin/Public/style/news.css" rel="stylesheet" type="text/css" />
    <link type="text/css" rel="stylesheet" href="/origin/Public/style/skin2.css" />
    <style type="text/css">
        table{
            border-collapse: 0;
            border-spacing: 0;
            boder:0;

        }
    </style>
    <script type="text/javascript">
        window.UEDITOR_HOME_URL = "/origin/Public/ueditor/";
    </script>
    <script type="text/javascript" src="/origin/Public/ueditor/ueditor.config.js"></script>
    <script type="text/javascript" src="/origin/Public/ueditor/ueditor.all.js"></script>
</head>

<body>
<!--这里是图片栏目列表-->
<script type="text/javascript" src="/origin/Public/js/chkbox.js"></script>
<script type="text/javascript">
    window.onload= function(){
        chkBox('chkbox','tids[]');
    };

</script>
<style type="text/css">
    table td{
        width:15%;
    }
</style>
<form action="/origin/index.php/Admin/PicColumn/batDel" method="post" id="batDelPic"></form>
<table class="tableb">
    <tr class="tbtitle">
        <td colspan="4" class="tdsearch">
            <form action="/origin/index.php/Admin/PicColumn/viewByClass" id="viewByClass" method="post" style="text-align: left; margin-left: 80px;">
                <select name="class_id" form="viewByClass">
                    <?php if(is_array($classS)): foreach($classS as $key=>$value): ?><option value="<?php echo ($value["tid"]); ?>"><?php echo ($value["name"]); ?></option><?php endforeach; endif; ?>
                    &nbsp;&nbsp;&nbsp;&nbsp;
                    <input type="submit" value="分类显示" name="" form="viewByClass" />
                </select>
            </form>
        </td>
        <td colspan="2">
            <span class="rightop" style="width:120px;"><a href="/origin/index.php/Admin/PicColumn/addCol">添加图片栏目</a></span>
            <span class="rightop" style="width:80px;"><a href="/origin/index.php/Admin/PicColumn/addClass">添加分类</a></span>
            <span class="rightop" style="width:80px;"><a href="/origin/index.php/Admin/PicColumn/listClass">分类管理</a></span>
        </td>
    </tr>
    <tr class="contitle">
        <td><input type="checkbox" value="all" id="chkbox" form="batDelPic" />编号</td>
        <td>栏目名称</td>
        <td>缩略图</td>
        <td>所属分类</td>
        <td>更新时间</td>
        <td>操作</td>
    </tr>
    <?php if(is_array($picS)): foreach($picS as $key=>$value): ?><tr class="content conline">
        <td><input type="checkbox" name="tids[]" value="<?php echo ($value["tid"]); ?>" form="batDelPic" /><?php echo ($value["tid"]); ?></td>
        <td><?php echo $value['name'];?></td>
        <td><?php echo ($value["name"]); ?></td>
        <td><img height="80px" src="/origin/index.php/<?php echo ($value["pic_t"]); ?>" /></td>
        <td><?php echo ($value["class_name"]); ?></td>
        <td><?php echo ($value["updatetime"]); ?></td>
        <td><a href="/origin/index.php/Admin/PicColumn/editOneCol/<?php echo ($value["tid"]); ?>">编辑</a>&nbsp;&nbsp;<a href="/origin/index.php/Admin/PicColumn/delOneCol/<?php echo ($value["tid"]); ?>" onclick="javascript:return confirm('你确定要删除该数据吗？')">删除</a></td>
    </tr><?php endforeach; endif; ?>
    <tr class="content conline">
        <td><input type="submit" value="批量删除" name="goBatDel" form="batDelPic" /></td>
    </tr>
</table>
<p class="page">共<?php echo $count;?>条记录
    <?php
 echo $pageHtml; ?>
</p>
</body>
</html>